package com.cc.service;

import com.cc.entity.EmployeeProfiles;
import com.cc.entity.LeaveApplication;
import com.cc.entity.Page;
import com.cc.entity.User;

public interface UserService {
    //登录
    User login(String username, String password);
    //获取员工信息
    EmployeeProfiles getEmployeeById(Integer userId);
    //添加员工信息
    Boolean addEmployee(EmployeeProfiles employeeProfiles);
    //修改员工信息
    Boolean updateEmployeeProfiles(EmployeeProfiles employeeProfiles);
    //获取请假信息
    LeaveApplication getLeaveApplicationById(Integer employeeId);
    //分页查询
    public Page<EmployeeProfiles> findEmployeeByPage(String name, Page page);
    // 获取数据总数
    public int getEmployeeList(String name);
    // 删除员工信息
    boolean deleteEmployee(int id);
}
